package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Destination;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * Created by 甘静斌 on 2020-08-07 13:35
 */

/**
 *
 * 目的地持久化操作接口
 */
public interface DestinationRepository extends MongoRepository<Destination,String> {


    List<Destination> findByIdIn(List<String> ids);

    List<Destination> findByparentName(String name);

    List<Destination> findByparentId(String parentId, Pageable pageable);

    List<Destination> findByDeep(long deep);

    Destination findByName(String keyword);
}
